package com.zyasdk;

import android.content.Context;
import android.os.Handler;

import com.zyasdk.enums.PayState;
import com.zyasdk.model.PayParm;
import com.zyasdk.service.PayRecordService;

public class PU {

	/**
	 * 添加支付记录
	 */
	public static void AddPayRecord(Context context, Handler handler,
			String pbindKey, PayState state, int packId, String company,
			String payCountry, String payMoney, String payUnit, String language) {
		AddPayRecord(context, handler, pbindKey, state, packId, company,
				payCountry, payMoney, payUnit, language, null);
	}

	/**
	 * 添加支付记录
	 */
	public static void AddPayRecord(Context context, Handler handler,
			String pbindKey, PayState state, int packId, String company,
			String payCountry, String payMoney, String payUnit,
			String language, String orderNo) {
		new PayRecordService(context).AddActivates(handler, pbindKey, state,
				packId, company, payCountry, payMoney, payUnit, language,
				orderNo);
	}

	/**
	 * pr.setPackId(pp.getPackId()); pr.setPayCompany(pp.getPayCompany());
	 * pr.setPayCountry(pp.getPayCountry()); pr.setPayMoney(pp.getPayMoney());
	 * pr.setPayState(pp.getPayState()); pr.setPayUnit(pp.getPayUnit());
	 * pr.setPbindkey(pp.getPbindkey()); pr.setOrderNo(pp.getOrderNo());
	 * pr.setCodeRemark(pp.getCodeRemark()); pr.setOperators(pp.getOperators());
	 * 
	 * 增加   电话号码  + 支付失败日志+SIM卡商
	 * 
	 * @param context
	 * @param handler
	 * @param pp
	 */
	public static void addPayRecord(Context context, Handler handler, PayParm pp) {
		new PayRecordService(context).AddActivates(handler, pp);
	}
}
